﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BOrgList.aspx.cs" Inherits="DExcelServiceApp.BOrgList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%;">
            <tr>
                <td valign="top" style="width: 150px;">
                    <a href="BOrgList.aspx">Org List</a><br />
                    <a href="BDomainList.aspx">Domain List</a><br />
                    <a href="BYearList.aspx">Year List</a><br />
                    <a href="DimDataList.aspx">Dim Data List</a><br />
                    <a href="DimDocTemplateList.aspx">Doc Tempalte List</a><br />
                    <a href="DocList.aspx">Doc List</a>
                </td>
                <td style="width: 60%" valign="top">
                    <h2>
                        org list
                    </h2>
                    <div>
                        <asp:Button ID="_ctlBtnSync" runat="server" Text="Sync to dim" 
                            onclick="_ctlBtnSync_Click" />
                    </div>
                    <table style="width: 100%">
                        <asp:Repeater ID="_ctlListOrg" runat="server" 
                            onitemcommand="_ctlListOrg_ItemCommand">
                            <HeaderTemplate>
                                <tr>
                                    <td>
                                        -
                                    </td>
                                    <td>
                                        id
                                    </td>
                                    <td>
                                        name
                                    </td>
                                    <td>
                                        parent-id
                                    </td>
                                </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <asp:LinkButton ID="_ctlBtnSel" CommandName="Sel" CommandArgument='<%#Eval("Id") %>' runat="server" Text="选择" />
                                    </td>
                                    <td>
                                        <%#Eval("Id") %>
                                    </td>
                                    <td>
                                        <%#Eval("Name") %>
                                    </td>
                                    <td>
                                        <%#Eval("ParentId") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </td>
                <td valign="top">
                    <h2>
                        add org
                    </h2>
                    <div>
                    parent:<asp:TextBox ID="_ctlEditParent" runat="server" ReadOnly="true"></asp:TextBox>
                    </div>
                    name:<asp:TextBox ID="_ctlEditName" runat="server"></asp:TextBox>
                    <div>
                        <asp:Button ID="_ctlBtnCreate" runat="server" Text="create" 
                            onclick="_ctlBtnCreate_Click" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <asp:HiddenField ID="_ctlHiddenParentId" runat="server" />
    </div>
    </form>
</body>
</html>
